package com.yixin.hospital.entity.dto.req.activity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel("编辑活动请求体")
public class ActivityEditReqDTO {

    @ApiModelProperty(value = "id", example = "1")
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "药品编码", example = "xxx")
//    @NotBlank(message = "药品编码不能为空")
    private String drugCode;

    @ApiModelProperty(value = "活动类型", example = "xxx")
    @NotNull(message = "活动类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "活动名称", example = "xxx")
    @NotBlank(message = "活动名称不能为空")
    private String name;

    @ApiModelProperty(value = "开始时间", example = "2023-04-06 12:00:00")
    @NotNull(message = "开始时间不能为空")
    private Date startTime;

    @ApiModelProperty(value = "结束时间", example = "2023-04-06 12:00:00")
    @NotNull(message = "结束时间不能为空")
    private Date endTime;

    @ApiModelProperty(value = "规则", example = "")
    @NotBlank(message = "规则不能为空")
    private String rule;
}
